<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let p = new Promise((res,rej)=>{
				setTimeout(()=>{
					res("成功");
				},1000)
			})
			
			
			p.then(reslut=>{
				console.log(reslut);
				return new Promise(res=>{
					setTimeout(()=>{
						res("成功2");
					},2000)
				})
			}).then(res=>{
				console.log(res);
			})
			
			
			
			
			
		</script>
	</body>
</html>
